import request from '@/utils/request'

import { AxiosPromise } from 'axios'

const prefix = '/api/'

// 飞书登录
export const feishuLogin: (data: any) => AxiosPromise = (data: any) => request(prefix + 'login', { data })

// 获取用户信息
export const staffGetInfo: (data:any) => AxiosPromise = (data) =>
  request('/api/staff/getInfo', { data })